var express = require("express");
var app = express();

var bodyParser = require("body-parser");

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended:true}));


app.use(express.static(__dirname+"/public"));
app.use(express.static(__dirname+"/views"));
var chuli = require("./apps/chuli");

app.post("/add",chuli.postAdd);
app.get("/show",chuli.getShow);
app.get("/del",chuli.getDel);
app.get("/delAll",chuli.getDelAll);



app.listen(3000,()=>{
  console.log("server is running at http://localhost:3000");
})